package com.jt.safe.repository
import com.jt.safe.base.BaseDataResponse
import com.jt.safe.config.Network
import com.jt.safe.entity.NullBean

class AppRepository {
    suspend fun version(): BaseDataResponse<NullBean> {
        return Network.getUserApi().version()
    }

//    suspend fun filesUpload(file: File): BaseDataResponse<String> {
//        var createFormData = MultipartBody.Part.createFormData(
//            "file",
//            file.name,
//            file.asRequestBody("multipart/form-data".toMediaTypeOrNull())
//        )
//        return Network.getUserApi().filesUpload(createFormData)
//    }

//    fun insertUser(loginBean: LoginBean?) {
//        SP().put(Config.user, loginBean.parse2Json())
//        SP().put(Config.token, loginBean!!.token)
//        SP(Config.userName).put(Config.userName, loginBean.phone)
//    }
}